<?php
if(isset($_COOKIE['view_goods'])) {
    $viewGoodsArray = unserialize($_COOKIE['view_goods']);
    if(is_array($viewGoodsArray) and !empty($viewGoodsArray)) {
        foreach($viewGoodsArray as $vGoodsValue) {
            ?>
            <li class="product">
                <dl>
                    <dt class="img tc"><a href="<?php echo $this->url('frontgoods/default', array('goods_id'=>$vGoodsValue['goods_id'], 'class_id'=>$vGoodsValue['class_id'])); ?>" title="<?php echo $this->escapeHtml($vGoodsValue['goods_name']); ?>"><img src="<?php echo $this->basePath($this->frontwebsite()->shopGoodsImage($vGoodsValue['image'])); ?>" width=200></a></dt>
                    <dd><a href="<?php echo $this->url('frontgoods/default', array('goods_id'=>$vGoodsValue['goods_id'], 'class_id'=>$vGoodsValue['class_id'])); ?>"><?php echo $this->escapeHtml($vGoodsValue['goods_name']); ?></a></dd>
                </dl>
            </li>
        <?php } } } ?>